cmake_minimum_required(VERSION 3.12)
project(shopping)

if(MSVC)
    add_compile_options(/utf-8)
endif()
    

# 设置C++标准
set(CMAKE_CXX_STANDARD 14)

# 添加源文件
set(SOURCES
    main.cpp
    include/time/time.cpp
    include/user/user.cpp
    include/shop/shop.cpp
    include/item/item.cpp
    include/item_management_system/itemManage.cpp
    include/log/log.cpp
    include/order/order.cpp
    include/order_management_system/ordermanage.cpp
    include/shop/shop.cpp
    include/UI/UI.cpp
    include/user_manage_system/usermanage.cpp)

# 生成可执行文件
add_executable(shopping ${SOURCES})